package unit04.day03;
/**
 * 测试异常抛出
 * @author cola
 *
 */
public class ExceptionDemo4 {

	public static void main(String[] args) {
		System.out.println("程序开始了");
		Person person = new Person();
		
		try {
			person.setAge(200);
		} catch (IllegalAgeException e) {
			System.out.println(e.getMessage());
		}
		
		System.out.println("程序结束了");
	}

}
